package org.xg.study.pd;

import java.util.Date;

/**
 * @author CMG
 * @version 1.0
 * @description
 * @cLassName LotteryServiceImpl
 * @date 2021/9/17 10:15
 **/
public class LotteryServiceImpl extends LotteryService {
    private MiniBusTargetService miniBusTargetService = new MiniBusTargetService();

    @Override
    public LotteryResult doDraw(String uId) {
        // 摇号
        String lottery = miniBusTargetService.lottery(uId);
        // 结果
        return new LotteryResult(uId, lottery, new Date());
    }
}
